package com.zmovie.framework.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zmovie.framework.domain.Hall;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author lenovo
* @description 针对表【hall】的数据库操作Service
* @createDate 2023-12-02 17:48:20
*/
public interface HallService extends IService<Hall> {
    /**
     * 条件分页查询
     * @param pageNo 页号
     * @param pageSize 页大小
     * @param hall 封装条件
     */
    Page<Hall> pageHall(Integer pageNo, Integer pageSize, Hall hall);

    /**
     * 修改影厅状态
     * @param hall 封装数据
     */
    boolean updateHallState(Hall hall);

    /**
     * 修改座位
     * @param hall id hallState
     */
    boolean updateHallSeat(Hall hall);


    List<Hall> listHallByCinemaId(Integer cinemaId);

    List<String> listHallTypeNamesByCinemaId(Integer cinemaId);
}
